/*
* $Id: DeleteOperation.h 156 2010-09-28 19:00:52Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _DELETE_OPERATION_H_
#define _DELETE_OPERATION_H_

#include "../Operation.h"

class CDeleteOperation : public COperation
{
protected:
	void DeleteQueenBee(IDatabase* pDatabase);
	void DeletePoint(IDatabase* pDatabase);
	void DeleteFamily(IDatabase* pDatabase);
	void DeleteJournal(IDatabase* pDatabase);
public:
	CDeleteOperation();
	virtual ~CDeleteOperation();
	struct content : public COperation::content{
		content();
		enum type{
			DEFAULT = 0,
			POINT,
			FAMILY,
			JOURNAL,
			QUEEN_BEE
		}s_type;
		int s_nId;
		virtual void Clear();
	}m_content;
public:
	virtual void DeleteValue(IDatabase* pDatabase);
};

#endif/*_DELETE_OPERATION_H_*/